import com.entity.*;
import com.service.impl.cairo;
import org.apache.shiro.crypto.hash.Md5Hash;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class test {
  public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
      cairo aa= (cairo)context.getBean("cairo") ;
        UserInfo userInfo=new UserInfo();
        userInfo.setLoginPassword("123");
        userInfo.setLoginName("123");
        aa.updater(userInfo);
//        Md5Hash hash3 = new Md5Hash("123", "users", 2);
//        System.out.println(hash3);

    }
}
